package com.goodluck.goodluckim.sdk.dispatcher.strategy;

import com.goodluck.goodluckim.db.model.IMMessage;
import com.goodluck.goodluckim.sdk.GLIMClient;
import com.goodluck.goodluckim.sdk.dispatcher.base.IMessageStrategy;

/**
 * Created by wyj on 2018/10/23.
 */

public class MessageReceiveStrategy implements IMessageStrategy<IMMessage> {
    @Override
    public void dispatcher(IMMessage message) {
        GLIMClient.getInstance().getMessageService().receiveMessage(message);
        GLIMClient.getInstance().getSessionService().setSession(message);
    }
}
